import request from '@/utils/request'

// 查询宿舍信息列表
export function listDormitoryInfo(query) {
  return request({
    url: '/system/dormitoryInfo/list',
    method: 'get',
    params: query
  })
}

// 查询宿舍信息列表
export function queryDormitoryInfo(query) {
  return request({
    url: '/system/dormitoryInfo/query',
    method: 'get',
    params: query
  })
}

// 查询宿舍信息详细
export function getDormitoryInfo(id) {
  return request({
    url: '/system/dormitoryInfo/' + id,
    method: 'get'
  })
}

// 新增宿舍信息
export function addDormitoryInfo(data) {
  return request({
    url: '/system/dormitoryInfo',
    method: 'post',
    data: data
  })
}

// 修改宿舍信息
export function updateDormitoryInfo(data) {
  return request({
    url: '/system/dormitoryInfo',
    method: 'put',
    data: data
  })
}

// 删除宿舍信息
export function delDormitoryInfo(id) {
  return request({
    url: '/system/dormitoryInfo/' + id,
    method: 'delete'
  })
}
